package com.chp.demo5.business.controller;

import cn.hutool.http.server.HttpServerRequest;
import com.chp.demo5.business.service.AcctReportService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.datasource.DataSourceUtils;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletResponse;
import java.time.LocalDate;
import java.time.format.DateTimeFormatter;
import java.util.Locale;

/**
 * 财务
 */
@RestController
public class CompletableFutureController {
    @Autowired
    AcctReportService acctReportService;

    /**
     * 账套管理
     * @param request
     * @param response
     */
    @PostMapping("testAcctReport")
    public void testAcctReport(HttpServerRequest request, HttpServletResponse response){
        acctReportService.testAcctReport();
    }

    public static void main(String[] args) {
        String receiptDate= "2023-12-28 12:23:45";

       LocalDate.parse(receiptDate, DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss", Locale.ENGLISH));
        System.out.println("成功");
    }
}
